Closed (fixed)
Project:
CSSTidy
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Apr 2010 at 23:50 UTC
Updated:
10 May 2010 at 21:40 UTC
if (!file_exists($csstidy_file_path))
The above code doesn't appear to be an effective way to detect if CSSTidy has already parsed the stylesheet.
A better option might be to detect when the drupal_build_css_cache function is called.
Then we can remove the code bits that detect if optimize CSS is enabled in the option because drupal_build_css_cache should only run when it is enable. Two birds, one stone.
We would just need to add a line of code to the install file to clear the cache when CSSTidy is installed.
Comments
Comment #1
philbar commentedWhy this is bad:
Comment #2
ianchan commentedsubscribe
Comment #3
philbar commentedI did some testing on this issue on a dev server and the recent changes I made seem to have resolved the issue.