Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter app structure with caching.
#1

[eluser]Kumar Chetan sharma[/eluser]
<p>I have a web application which simply fetches data from stock exchange feeds and displays it. To enable caching the plan is to create a static HTML file once the stock exchange is closed coz there will not be any change in the stocks. Here is the structure for doc root of website</p>

<code>/index.php the CI controller
/application
/system
</code>

<p>The URLs are </p>
<code>mysite.com/marketwatch.html - served by index method of marketwatch controller
mysite.com/marketwatch/marketindex/some-index-name.html - served by marketindex method of marketwatch controller and takes some-index-name as argument
mysite.com/marketwatch/scripdetails/some-scrip-name.html - served by scripdetails method of marketwatch controller and takes some-scrip-name as argument
</code>
<p>Now what I can do is to create a path like <code>DOCROOT/marketwatch/marketindex</code> and <code>DOCROOT/marketwatch/scripdetails/</code> and set 777 perms on these two so that at right time of the day the files are created in these two folders and .htaccess will direct Apache to serve these files instead of invoking whole CI framework and save sever of some botheration. The problem is</p>

a) setting 777 for a folder that is served by webserver sounds wrong
b) I can't set 777 perms for doc root to create marketwatch.html

<p>Can some one guide me how to solve this issue?</p>




Theme © iAndrew 2016 - Forum software by © MyBB