Here's a proof of optimality. What's the worst nightmare of a corridor cat-catcher? Psychic cats with foreknowledge of the sequence your strategy will open the doors in. The idea is to construct a decision rule that such an opponent can follow to evade your moves — like trying to write an AI for your enemy in a computer game, can we make them hard to beat based on just a few simple rules? In particular, sufficiently hard to beat that we need at least $2(n-2)$ turns to catch such a cat? If so, then a winning strategy which opens only $2(n-2)$ doors must be optimal.
There are $n-2$ doors not at the ends of the corridor, i.e. the doors numbered $\{2, 3, \dots, n-1\}$, and it turns out each of them must be opened at least twice, or else we can write a ruleset that creates an uncatchable cat. Therefore the minimum number of openings is indeed at least $2(n-2)$. In fact we'll see each non-end door must be opened at least once on an even-numbered turn and at least once on an odd-numbered turn.
Suppose there is one of these non-end doors you never open. Let's call it $x$. Then a cat knows it is always safe behind that door, and can use it as a kind of "home square" that it spends every other turn behind. (If the cat spends all its odd-numbered turns behind door $x$ we'll call it "odd-homed" at $x$; similarly for "even-homed".) On the alternate turns, it has a choice of two adjacent doors $x-1$ and $x+1$ to temporarily hide behind. Since you can open at most one of them on any given turn, then a psychic cat can just choose the other adjacent door if you do so. So a cat that's odd-homed at $x$ can follow a decision rule like "spend odd turns behind the safe door $x$, and even turns behind $x+1$ unless that door is being opened on that turn, in which case hide behind $x-1$ instead". You can't catch that cat, so a strategy that never opens door $x$ is doomed.
Now suppose you open door $x$ only once. If you do so on an odd-numbered turn, then $x$ is still a safe square on all even-numbered turns and a psychic cat even-homed at $x$ is uncatchable. It can safely follow the rules "spend even turns behind the safe door $x$, and odd turns behind $x+1$ unless that door is being opened on that turn, in which case hide behind $x-1$ instead". But open $x$ only on an even turn, and the cat can evade you by being odd-homed at $x$. Clearly you'll have to open door $x$ on both an even-numbered turn and on an odd-numbered turn to guarantee catching this pesky cat, and this is true for each $x \in \{2, 3, \dots, n-1\}$. This is enough to prove at least $2(n-2)$ openings are required to defeat cats following odd- or even-homed rulesets. Here's an illustration of how the rulesets work:
Key: door symbols represent which door is opened on that turn; some rows have no door shown because a door other than $\{x-1,x,x+1\}$ was opened that turn. Colour-coding shows times when the cat follows one of the "dodging rules", and which door opening they are responding to. Cats with a blank background are just following their default rule; door openings with a blank background have no effect on the cat's behaviour.
EDIT: Now can we use this idea to find the optimal solutions?
The odd-homed and even-homed cats are sufficiently hard to beat that we now know at least $2(n-2)$ openings are required, and if such a strategy exists, then any given non-end door $x \in \{2,3,4,\dots,n-1\}$ must be opened exactly once on an odd turn (let's call that turn number $T_O$) and exactly once on an even turn ($T_E$). Unfortunately, any strategy that opens every non-end door once on an even turn and once on an odd turn is sufficient to beat these opponents, but it's clear many of these strategies will fail against more cunning and mobile cats. In other words, the cat rulesets we considered so far are not difficult enough to beat that they can show us what the optimal strategy actually looks like. We need to make our adversary a bit tougher.
The odd-homed and even-homed rulesets were as tricky as it gets if the cat is limited to three doors, so let's grant the freedom to use a fourth door in emergencies. For $x \in \{2,3,4,\dots,n-2\}$ there is another door two to the right, at $x+2$, which a "right-dodging" cat can hide behind when they need to avoid their "home" door $x$. Getting there and back means they must occupy door $x+1$ in the turns before and after. Similarly for $x \in \{3,4,\dots,n-2,n-1\}$, a "left-dodging" cat homed at $x$ can hide behind $x-2$ when $x$ is opened on a turn they'd usually be scheduled to be there, passing through $x-1$ in the turns before and after.
So a right-dodging cat odd-homed at $x$ can follow a ruleset like "spend odd turns behind the safe door $x$, except on turn $T_O$ when we hide behind door $x+2$ instead. Spend even turns behind $x+1$ unless that door is being opened on that turn, in which case try to hide behind $x-1$, but we must spend turns $T_O - 1$ (if $T_O > 1$) and $T_O + 1$ hiding behind door $x+1$ in order to reach door $x+2$ on turn $T_O$ and return to door $x$ on turn $T_O + 2$". Such a cat can no longer be caught behind door $x$, and is now safe on all odd turns! Our only chance to catch it is to also open door $x+1$ on one of the turns $T_O \pm 1$. Similarly, a right-dodging cat even-homed at $x$, but which hides behind $x+2$ on turn $T_E$, can be caught only behind door $x+1$ on turns $T_E \pm 1$. Left-dodging cats can be caught only behind door $x-1$ on turns $T_O \pm 1$ (if odd-homed) and $T_E \pm 1$ (if even-homed).
We now have to beat four kinds of adversary, based on whether they are odd- or even-homed and whether they dodge left or right:

I'll call the doors that are neither at nor adjacent to the ends of the corridor, i.e. doors $\{3,4,\dots,n-3,n-2\}$, the "mid-corridor" doors. If $x$ is a mid-corridor door, then it can be home to both left-dodging and right-dodging cats, so on the turns before and after we open $x$, we must also open $x-1$ and $x+1$ to ensure either kind of cat is caught. This means we must open the three doors in sequence, either $x-1, x, x+1$ ("sweeping up") or $x+1, x, x-1$ ("sweeping down"). In particular, we cannot open $x$ unless we opened one of its adjacent doors the turn before — which means the optimal strategy cannot start by opening a mid-corridor door — and our next move is determined by the previous one, in such a way as to keep the sequence of door openings moving in the same direction: we are propagating a wave of openings either leftwards or rightwards along the corridor.
We now know that the first door to open must be adjacent to the corridor ends, so either $2$ or $n-1$. Let's say our first turn opens door $2$; in case there was a right-dodging cat odd-homed at door $2$, we must spend the second turn opening door $3$. But this is a mid-corridor door, so afterwards our third turn must be used to open door $4$ (in case there was a right-dodging cat even-homed at $3$), then the fourth turn on $5$, and so on until we open door $n-1$ on turn $n-2$, thus completing a sweep "up" the corridor.
What happens on the next turn, $n-1$? We previously established we couldn't open a mid-corridor door unless we opened an adjacent door the turn before. We just opened door $n-1$ so the only mid-corridor door we need to consider is door $n-2$, but we opened it two turns ago. The optimal strategy required us to open it once on an even turn and once on an odd turn, not on two even or two odd turns. So we must either open door $n-1$ again immediately, or repeat our first turn and return to door $2$. Note that if $n$ is even, then $n-1$ is an odd-numbered turn, so it is not optimal to return to door $2$ which was previously opened on an odd-numbered turn. If $n$ is odd, then $n-1$ is an even-numbered turn and we can return to door $2$, hence triggering another wave that sweeps up the corridor. On the other hand, we can open door $n-1$ again regardless of the value of $n$, since opening it on turns $n-2$ and $n-1$ is guaranteed to be one odd turn and one even turn. By similar reasoning, this triggers a wave that sweeps down the corridor, back to door $2$.
Alternatively we could have opened door $n-1$ on the first turn; in case there was a left-dodging cat odd-homed at $n-1$, then the second move must be to open the mid-corridor door $n-2$, which must then be followed by $n-3$, and so on. But the symmetry of the situation means this is just a reflection of what happened when we started at $2$; one way to see that starting with door $2$ was without loss of generality is to renumber the doors from right to left instead of left to right, so that door $n-1$ is relabelled as door $2$.
What we have shown is that if there is an optimal solution that catches the cat within $2(n-2)$ turns, then it must be one of:
- sweep up the corridor then back down again, $(2, 3, \dots, n-2, n-1, n-1, n-2, \dots, 3, 2)$,
- if $n$ is odd, sweep up the corridor twice, $(2, 3, \dots, n-2, n-1, 2, 3, \dots, n-2, n-1)$,
- reflections of the above, i.e. sweep down the corridor then back up (for any $n$) or sweep down the corridor twice (for odd $n$).
It is clear that any of these strategies will defeat any feline adversary following one of the six rulesets considered so far, since we have ensured
- each non-end door is opened on one odd turn and one even turn,
- whenever we opened a door that could be home to a right-dodging cat, we opened the door immediately to the right either on the turn before or the turn after,
- whenever we opened a door that could be home to a left-dodging cat, we opened the door immediately to the left either on the turn before or the turn after.
We haven't yet shown that these are the optimal strategies, because we haven't proven they actually work against every cat, not just the six opponents we designed. To check this, here's a proof by induction of the statement "if we sweep up the corridor from door $2$ to door $n-1$, then at the moment we open door $k$ (i.e. before we close it again and give the cat its chance to move before our next turn) any cat which started behind an even-numbered door, and hasn't been caught yet, will be an even number of squares to the right of door $k$, so behind one of doors $k+2, k+4, \dots$."
The base case is trivially true when $k=2$: when we open that door first, we would catch the cat if it started behind door $2$ and it would be an even number of squares to the right if it started behind one of doors $4, 6, 8, \dots$. Now suppose the statement was true when we opened door $k-1$. When we opened that door any cat that started behind an even door was now behind one of doors $k+1, k+3, \dots$. When we close that door and the cat moves, it must reach one of doors $k, k+2, k+4, \dots$. When we open door $k$, then we will catch the cat if it is there, and otherwise it must be behind one of doors $k+2, k+4, \dots$, so the statement is also true for door $k$. So by the principle of induction, we see the statement is true up to $k=n-1$. But when we complete our sweep by opening door $n-1$, there are no longer any doors an even number to the right. Hence every cat which started behind an even door has been caught in our first sweep up the corridor.
What about any cat that started behind an odd door? If $n$ is even, then after $n-2$ turns (allowing the cat to move after each turn), the cat will have made an even number of moves and be behind an odd door again. We know we need to sweep back down the corridor, from $n-1$ to $2$. If we now renumber the doors from right to left, odd doors that might hide the cat are relabelled as even doors, and we are effectively sweeping up from $2$ to $n-1$ again, so can apply the previous proof and are guaranteed the cat will have been found by the end of our second sweep. On the other hand, if $n$ is odd, then any cat that started behind an odd door will end up behind an even door after $n-2$ turns. Therefore sweeping up from $2$ to $n-1$ a second time is guaranteed to find the cat. Alternatively, we could sweep back down from $n-1$ to $2$. This time if we renumber the doors from right to left, for odd $n$ the even doors the cat could be behind are relabelled as even again. So again the second sweep is guaranteed to find the cat.
Finally, it's clear from symmetry, e.g. by reversing the numbering, that the "reflected" solutions (sweep down then up, or sweep down twice for odd $n$) are also guaranteed to find the cat, regardless of whether it started behind an even or odd door.
Overall, we have shown all of the potential strategies we found to be valid; they all involve opening the minimal number of $2(n-2)$ doors so are all optimal; and we have previously shown that no other strategies can open this few doors and still be guaranteed to catch the cat. Therefore we have found the complete set of optimal strategies.