At the moment I'm fixing some bugs on the extension and I'm also
working on a new feature that I think could be really cool.
Now if we open a page under the dev environment, and we have some
cached partials around there, symfony will displays some divs with the
cache information. In one of the projects I work on, this divs get
really annoying because sometimes they disturb the functionality of
the website or simply break the design.
So my idea is to add a "cache" tab to the extension, where I will list
all the cached partials, showing the cache lifetime, the modified time
and the cache key in a table like layout. Then if the developer rolls
over one of the rows of the table, it will highlight the area of the
webpage where the cached partial is being displayed, in the same way
that Firebug highlight an element when we are ins "Inspect" mode.
I think this will be really convenient and easy to use, and will also
keep our page layouts clear.
Now I'm finishing testing it, I have it working on my symfony 1.0 and
1.1 projects and need to make it work under symfony 1.2.
That's for now and thank for listening :)
Cheers,
Alvaro
PS. Please report any issues on the project web site: http://code.google.com/p/firesymfony/
I love the new caching idea, however it would perhaps be useful to
somehow be able to identify each partial with the cache information.
Perhaps it would be possible to make it configurable if you want the
identify the partials, for instance by outlining them with a 1px red
line (as is currently the case with regular debugging)? I am not sure
if this is possible. Or perhaps to only outline if in the firesymfony
extension you click a specific cache information?
Stefan
--
Stefan Koopmanschap
http://www.stefankoopmanschap.nl/
http://www.leftontheweb.com/
I tell you how it's working now:
- You load a page with cached partials.
- On the extension there is a new "Cache" tab, you click there and you
see a table where each row represents the information of a cached
partial.
- If you mouse over that row (or click perhaps) then the cached area
is highlighted in the same way Firebug highlights an element while
inspecting.
About the 1px outlining, it could be a nice and clear way for us to
see the cached areas. I will talk with the design team in the company
I work for to ask them for a solution that don't break the html.
Alvaro
That sounds awesome.
I first tried firesymfony yesterday and it works like a charm.
Excellent work on this, this will be very useful!
Stefan