I have two questions regarding the Mint API. I’m developing a ‘silent’ application (which doesn’t render a pane). The application simple updates a database table whenever it’s loaded.
1) I’ve placed the database update code within the onPepperLoad() method. However, whenever the site is reloaded, the database is updated six times (this is a consistent number). Is there something I should be aware about with the onPepperLoad method, or is this likely down to problems in my code?
2) I’m trying to setup and update a manifest, like so:
var $manifest = array
(
'hint' => array
(
'last_updated' => "INT(11) NOT NULL"
)
);
However, looking at other Peppers, it seems that a manifest is only updated onRecord()? Is there any easy way to update a manifest if my Pepper doesn’t utilize any javascript?