get rid of main.php in src=""? direct link t thumbs possible?

scuba303

Joined: 2010-06-01
Posts: 11
Posted: Tue, 2010-06-01 12:58

hi forum,

i have a project where i include plenty of thumbnails from a g2. i use php fcgi.. on one site g2 is using approx 80 php processes to fill some thumbnail slider.
thumbnails are referenced in the src tag like this /main.php?g2_view=core.DownloadItem&g2_itemId=66056&g2_serialNumber=3
is there any way to make those pointing to existing files? like src="path/to/thumbs/hereiam.jpg"
with this even the caching mechnanism of my website where i embed the thumbs probalbly would work..

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2010-06-01 16:53
Quote:
is there any way to make those pointing to existing files? like src="path/to/thumbs/hereiam.jpg"

Not in G2. G3 yes. But really it sounds like your site needs to be tuned a bit. I surely wouldn't be letting it spawn that many processes. Maybe 10, but not 80+. You'll bring the server to it's knees if all the sites on the server could do that. Just think if you had 10 visitors to that page at the same time (or even close to the same time while these processes were still in existence), that's potentially 800 processes.... Ouch.

Are you utilizing G2's caching?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
scuba303

Joined: 2010-06-01
Posts: 11
Posted: Wed, 2010-06-02 10:16

yes.. it will bring a server on it's knees.. would all be ok if there would be direct src path.. then the typo3 caching would know what to do with it. really wonder that nobody else has problems like this and the feature is going to be introduced in gs3..