When disabling a project on the Project Listing page by unchecking its checkbox, the cache is not cleared.

In file optimizely.admin.inc, function optimizely_ajax_enable(), variable $target_paths is assigned a value on line 598. The value of that variable is subsequently used to clear the cache on line 638 on the call to optimizely_refresh_cache(). However, $target_paths is not initialized at that point when a project is being disabled via the checkbox.

I confirmed this by stepping through the code with a debugger.

Comments

DeeZone’s picture

Title: Cache not cleared when disabling project » Cache not cleared when disabling project from project listing
Assigned: Unassigned » DeeZone
Status: Active » Needs work

Updated the title of the issue as it's the checkbox functionality in the project listing that is not triggering the cache clearing. When updating project details / enabling from the project form that related paths clear cache.

DeeZone’s picture

Status: Needs work » Needs review

See 7.x-2.x_Bug_fixes-2.15 branch for solution. Fix will be in 7.x-2.15 release.

DeeZone’s picture

Status: Needs review » Fixed
DeeZone’s picture

Status: Fixed » Closed (fixed)