modxcms / revolution

MODX Revolution - Content Management Framework
https://modx.com/
GNU General Public License v2.0
1.35k stars 528 forks source link

faulty caching when renderTV in plugin #10041

Open manu37 opened 10 years ago

manu37 commented 10 years ago

manu37 created Redmine issue ID 10041

example plugin OnWebPageInit:

$id = $modx->resourceIdentifier;
$resource = $modx->getObject('modResource', $id ) ;
$tv = $resource->getTVValue('myTV');

getTVValue causes faulty caching (without, caching works correctly). I'm pretty sure this was working in 2.2.7. Since this is essential for the revoSSL plugin (secured pages), any ideas for a workaround? regards manu

BobRay commented 10 years ago

bobray submitted:

I can confirm that with this plugin in place, the ##.cache.php files are never created when pages are visited in the front end and the site becomes very slow.

This happens regardless of whether getTVValue() is called with the name or the ID of the TV.

With the third line commented out, the cache files are created as usual.