website - MODx - Php code isn't updating -
i have been using snippets power "server status" page minecraftservers, , working fine quite while, reason php code not updating! (it became clear when our servers went down, , sadly server status snippets not updating, , quite few of our users getting confused!)
if receive help, awesome-
problem:
php snippets not updating (not after 24 hours)
desired result:
is there way make update every 2-3 minutes when being used, if no 1 goes page, not update @ all..?
snippet code: on pastebin
modx version - revolution 2.2.6-pl
this due caching.
caching in modx means system creates individual file each resource in site. these files built snippets, chunks , placeholders may have in template , elements being parsed.
if chose cache these snippets or chunks, modx not call code again, output content generated first time cache created.
these cached:
[[mysnippet]] [[$mychunk]]
these uncached:
[[!mysnippet]] [[!$mychunk]]
please note want use caching possible, snippet describing (different output without removing cache) require uncached tags.
Comments
Post a Comment