Issues

ZF-6550: Zend_Cache_Frontend_Page - Regexps not support via Zend_Config_Ini

Issue Type: Improvement Created: 2009-05-05T20:28:12.000+0000 Last Updated: 2012-11-20T20:52:55.000+0000 Status: Closed Fix version(s): Reporter: James Turle (jturle) Assignee: None Tags: - Zend_Cache

Related issues: Attachments: - library.diff

Description

The function Zend_Cache_Core_Frontend_Page->_setRegexps requires the actual regular expression to be the key to an array of options for that expression. This works fine when you're just passing a PHP array (And possibly XML), however there is no way to define this sort of array key via a Zend_Config_Ini file, the following fails:

resources.pagecache.regexp."^/$".cache = true resources.pagecache.regexp."^/article/'".cache = true

I propose the function is modified to support having a regexp option (as an option for backwards compatibility) that contains the actual regular expression. An example of how this would look in an INI file would be:

resources.pagecache.regexps.0.regexp = "^/$" resources.pagecache.regexps.0.cache = true resources.pagecache.regexps.1.regexp = "^/article/'" resources.pagecache.regexps.1.cache = true

Comments

Posted by James Turle (jturle) on 2009-05-05T20:30:23.000+0000

A patch file to allow for a new format of defining regular expressions under Zend_Cache_Frontend_Page when using Zend_Config_Ini.

Posted by Fabien MARTY (fab) on 2009-07-17T11:03:32.000+0000

change Assignee because I'm inactive now

Posted by Rob Allen (rob) on 2012-11-20T20:52:55.000+0000

Bulk change of all issues last updated before 1st January 2010 as "Won't Fix".

Feel free to re-open and provide a patch if you want to fix this issue.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts