Hot answers tagged

3

You would actually want to use a module for this, so that you can have an action ID associated. The module development documentation section about the install method mentions how to setup action IDs, which basically allow you to load http://yourdomain.com?ACT=123 from a cron job and run a method from your module. From there you simply need to build out ...


3

CE-Cache for EE2 (i.e. CE-Cache 1.101) and for EE3 (i.e. CE-Cache 2.0.2) each have the ability to clear the cache in response to an 'ACT' call. The action is registered in the EE Database as 'break_cache' and appears to require the submission of the CE-Cache "Secret" and the IDs of the channels that you want to break the cache for in a pipe-...


2

I think you already have your answer but if you need an additional reference (albeit an old one) then take a look at the CRON job EE page template code for the 'Paid Members' extension, you drop this into a EE template, enable PHP and then call it using a CRON job. https://github.com/ninefour/paid_members.ext.ee_addon/blob/master/templates/cron/expireUsers....


2

An alternative: if you're comfortable having a script outside of EE access your database, you could write a simple-ish SQL update statement, and have your cron run that script. The SQL would be something like this: update exp_channel_titles set status = 'new status' where entry_date > 1385943600 and channel_id = 1 If you're using a "custom" field for ...


2

I do not believe that the Cron will actually return the value from the plugin called via the plugin parameter. So you can do either: {exp:cron minute="*" hour="*" day="*" month="*" plugin="my_custom_plugin:check"}{/exp:cron} This will run the check method of your my_custom_plugin plugin class every minute (provided the template is loaded by someone). Or: ...


1

CEcache has a config setting that lets you control the number of seconds before cached items are renewed. This won't clear all caches at once, rather cached files based on their timestamp. https://docs.causingeffect.com/expressionengine/ce-cache/user-guide/configuration.html Another approach would get to get the clear cache URL's in the control panel (they ...


1

After confirming your extension is installed with module. Have you registered your action in table exp_actions? If no, then first register your action with respected method name. If yes, then make sure method name which you've specified in the exp_actions should be declared in the mod.plugin_name.php. And check with just echoing sample text. After ...


1

Maybe a bash or php script, external from EE, that flushes the /user/cache/* folder.


1

IP to Nation doesn't set an action (ACT), so I don't think there's a neat way of doing this. In ExpressionEngine, actions are given a unique ID and you can load /index.php?ACT=1234 to execute the action's code. For modules that use ACT you can run cron jobs by curl'ing the URL.


1

This may be a bit too late to be helpful in your situation but in the event someone else runs into a similar scenario, here are a couple things you could try to resolve the 403 error: Restart apache if you havent done that since setting up the cron job Check to make sure the permissions on the directory or file the cron job uses are correct. Make sure ...


1

I recently tinkered with the EE cron add-on and gave up on it; didn't work reliably for me. Automatee might be worth looking at; it can trigger events on a plugin as you desire, I think. Alternatively, you could pursue setting up an actual crontab; depending on the server admin tools available in your server environment, it's fairly straight forward.


Only top voted, non community-wiki answers of a minimum length are eligible